//
//  UINavigationController+Extend.h
//  CedarFinancePH
//
//  Created by lshenrong on 2018/4/2.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UINavigationController (Extend)


/**
 push 到 new vc
 @param vc controller
 */
- (void)pushToNewViewController:(UIViewController *)vc;


- (void)removeTheMidleViewControllers;


- (void)removeViewControllerWithArrayName:(NSArray *)nameArray;

/**
 上一个控制器是否和 controlleName 是一个
 */
- (BOOL)isEqualToPreviousControllerName:(NSString *)controlleName;

/**
 是否成功pop到旧的controller
 */
- (BOOL)popToOldViewControllerName:(NSString *)controllerName;
- (BOOL)popToOldViewController:(UIViewController *)vc;

/**
 显示隐藏导航栏阴影
 @param show YES:显示 NO:隐藏
 */
- (void)showNavigationBarShadow:(BOOL)show;


/**
 push到webview
 */
- (void)pushToWebViewController:(NSString *)webUrl;
@end
